package com.bwda.dsrs.filecenter.domain.form.sensitivelevel;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.bwda.dsrs.filecenter.domain.form.sensitiverule.SensitiveRuleCreateForm;

import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 敏感等级更新参数Form
 *
 * @author zhangyinmei
 * @date 2019年4月29日
 */
@Data
@ApiModel(description = "敏感等级")
public class SensitiveLevelUpdateForm {
	@ApiModelProperty(value = "ID", required = true)
	@NotNull(message = "ID不能为空")
	private Integer id;

	@ApiModelProperty(value = "名称", required = true)
	@Size(min = 0, max = 64 ,message = "最长不超过64，请重新输入！")
	@NotNull(message = "名称不能为空！")
	private String name;

    @ApiModelProperty(value = "等级:01234", required = true, allowableValues = "0,1,2,3,4")
	private Integer sensitiveLevel;

	@ApiModelProperty(value = "敏感匹配规则 ：0与 1或", required = true,allowableValues = "0,1")
	private Integer sensitiveRel;

	@ApiModelProperty(value = "敏感等级启用状态 ：0启用 1禁用", required = true,allowableValues = "0,1")
	private Integer sensitiveState;

	@ApiModelProperty(value = "敏感等级规则集合")
	private List<SensitiveRuleCreateForm> sensitiveRuleCreateFormList;

}